/**
 * Created by chenyong on 2015/7/16.
 */

var apitoken = require('./apitoken.js');
var path = require('path');
var _ = require('lodash');

module.exports = {
    secrets: {
        session: 'bigpixel'
    },
    userRoles: ['guest', 'user', 'admin'],
    api:{
        rootpath:     'http://srv.bigpixel.cn',
        token:apitoken.getcachedToken
    },
    env: process.env.NODE_ENV,
    root: path.normalize(__dirname + '/../..'),
    userRoles: ['guest', 'user', 'admin'],
    mongo: {
        //uri: 'mongodb://bigpixel-north.chinacloudapp.cn/xhr',
        //options: {
        //    user: 'xhr',
        //    pass: 'bigpixel@725'
        //}

        //uri:'mongodb://bigpixel-east.chinacloudapp.cn:27201/bigpixel-test,bigpixel-east.chinacloudapp.cn:27202/bigpixel-test,bigpixel-north.chinacloudapp.cn:27101/bigpixel-test,bigpixel-north.chinacloudapp.cn:27102/bigpixel-test/?replicaSet=jingkun',
        uri:'mongodb://bigpixel-east.chinacloudapp.cn:27201/bigpixel-old,bigpixel-east.chinacloudapp.cn:27202/bigpixel-old,bigpixel-north.chinacloudapp.cn:27101/bigpixel-old,bigpixel-north.chinacloudapp.cn:27102/bigpixel-old/?replicaSet=jingkun',
        options: {
            user: 'bigpixel',
            pass: 'bigpixel.725'
        }
    },
    azure:{
        adal:{
            tenant:'',
            audience:['e23507d7-b8fc-40df-a3a5-eb12a19ba9e8','7d21c0f1-78b8-4078-a8cc-89726b228e4d'],
            appid:'e23507d7-b8fc-40df-a3a5-eb12a19ba9e8',
            token_endpoint:'isvalidated',
            auth_endpoint:'',
            signing_cert:''
        }
    },
    weixin:{
        appid:"wx26fe4ccc982d1e1b",
        secret:"6d8ac447fd198ddeef5268d6c7976697",
        expireTime:7000
    }
}